package com.shopyourstyle.activities;

public class ProductInfo {
	private int _price;
	private int _commentnum;
	private int _fitnum;
	private String _url;
	private String _name;
	
	public static enum TYPE {
		PRICE,NAME,FITNUM,COMMENTNUM,URL 
	}
	public ProductInfo(String url, String name, int price, int commentnum, int fitnum){
		_url = url;
		_name = name;
		_price = price;
		_commentnum = commentnum;
		_fitnum = fitnum;
	}
	
	public Object getinfo(TYPE type){
		Object val = null;
		switch (type) {
			case COMMENTNUM:
				val =  _commentnum;
				break;
			case FITNUM:
				val = _fitnum;
				break;
			case PRICE:
				val = _price;
				break;
			case NAME:
				val = _name;
				break;
			case URL:
				val = _url;
				break;
		}
		return val;
	}
	
	
}
